<template>
  <view class="content">
    <web-view :src="userUrl"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      userUrl: "",
    };
  },
  onLoad(options) {},
  onReady() {
    uni.setNavigationBarTitle({
      title: this.$t("login.yinSiZc"),
    });
  },
  onShow() {
    uni.request({
      url: "https://app-api.chanson.ltd/apppartner/user/h5Info",
      method: "Get",
      data: {},
      header: {
        "Content-Type": "application/json",
        Authorization: "Bearer " + uni.getStorageSync("token"),
      },
      success: (res) => {
        if (res?.data?.code === 0) {
          this.userUrl = res.data.data.yhysUrl;
        }
      },
    });
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  overflow: hidden;
  padding-bottom: 20px;
}
.banner {
  overflow: hidden;
  width: 100%;
  height: 260px;
  background-size: 100% 100%;
  .set-lang {
    height: 40px;
    padding: 40px 0 0 30px;
    .lang-picker {
      display: flex;
    }
  }
  .yellow-word {
    border-radius: 13px 13px 13px 0px;
    background-color: #ffb33b;
    margin: 10px 0 0 30px;
    width: 100px;
    height: 30px;
    color: #fff;
    line-height: 30px;
    text-align: center;
  }
  .h-title {
    padding: 10px 0 0 30px;
    font-weight: bold;
    font-size: 22px;
    color: #333;
    line-height: 30px;
  }
  .s-title {
    padding: 10px 0 0 30px;
    color: #666;
  }
}
.login-tab {
  height: 40px;
  widows: 100%;
  overflow: hidden;
  .tab-item {
    width: 100%;
    overflow: hidden;
  }
}
.login {
  height: 36px;
  color: #666;
  width: 40px;
  line-height: 36px;
  margin: 0 auto;
  text-align: center;
}
.login.active {
  border-bottom: 4px solid #75cecc;
}
.login-content {
  overflow: hidden;
  margin-top: 30px;
  padding: 0 30px;
  .login-phone {
    margin-top: 20px;
    background-color: #f6f9fe;
    height: 48px;
    border-radius: 8px;
    /deep/.u-input__content {
      height: 48px;
      padding: 0 10px;
    }
    /deep/.u-input__content__prefix-icon {
      margin-right: 15px;
    }
  }
}
.agreement {
  margin-top: 20px;
  display: flex;
  height: 60px;
  padding: 0 30px;
  .agreement-radio {
    width: 40px;
  }
  .agreement-text {
    font-size: 14px;
    color: #333;
    text {
      color: #75cecc;
    }
  }
}
.next {
  padding: 0 30px;
  overflow: hidden;
  height: 60px;
  margin-top: 40px;
}
.sms-login {
  text-align: center;
  color: #75cecc;
  font-size: 16px;
  text-decoration: underline;
}
</style>
